package com.foreknow.demo6;

public class PersonImpl extends Person {
    @Override
    public boolean login(String name, String password) {
        return false;
    }

    @Override
    public boolean register(String name, String password) {
        return false;
    }

    @Override
    public Person getPersonById(int id) {
        return null;
    }

    @Override
    public Person[] getPersonAll() {
        return new Person[0];
    }

    @Override
    public boolean deletePersonById(int id) {
        return false;
    }

    public static void main(String[] args) {
        Person person = new PersonImpl();
        boolean isRight = person.login("admin", "admin");
        if (isRight){
            System.out.println("登录成功......");
        }else{
            System.out.println("登录失败......");
        }

        boolean isDelRight = person.deletePersonById(1001);
        if (isDelRight){
            System.out.println("删除成功......");
        }else {
            System.out.println("删除失败......");
        }
    }
}
